import ast

import https.HttpRequest as request

"""
http://www.aiivip.com/main/index   API
"""

api = "http://www.aiivip.com/vip/wzscapi.do?API_ID=5b4c520f9c21407fb74be6eef9e3ea5c&SECURITY_KEY=d6f7b09d5362743edc5ea948b87ffa98&KEYWORD=%E9%9B%B6%E9%A3%9F&ZISHU=999&ISWYC=1&ISH2=1&ISIMG=1&ISXGC=1&BTTYPE=1&WZHZ=_%E7%A2%8E%E9%A3%9F%E7%BD%91"


def getArtictlStr():
    content = request.get_web(api)
    if content is not None and content.text != "":
        httpStr = content.text
        jsonObj = ast.literal_eval(httpStr)
        if len(jsonObj) != 0:
            return jsonObj
    return None
